From e09f7fe5996073abf414b3bc2897c8dd84d2429a Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sun, 21 Nov 2021 13:34:23 -0700 Subject: [PATCH] support generation of xcode project files with qmake. (#760) --- GPSBabel.pro | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/GPSBabel.pro b/GPSBabel.pro index 0bd2a2696..4cfbb7332 100644 --- a/GPSBabel.pro +++ b/GPSBabel.pro @@ -213,18 +213,25 @@ win32-msvc* { QMAKE_EXTRA_COMPILERS += styles } -load(configure) - CONFIG(release, debug|release): DEFINES *= NDEBUG macx|linux|openbsd { - qtCompileTest(unistd) { - # this is used by zlib + if (equals(MAKEFILE_GENERATOR, XCODE)) { + # "Configure tests are not supported with the XCODE Makefile generator" + # assume we have the following headers + # these are used by zlib DEFINES += HAVE_UNISTD_H - } - qtCompileTest(stdarg) { - # this is used by zlib DEFINES += HAVE_STDARG_H + } else { + load(configure) + qtCompileTest(unistd) { + # this is used by zlib + DEFINES += HAVE_UNISTD_H + } + qtCompileTest(stdarg) { + # this is used by zlib + DEFINES += HAVE_STDARG_H + } } SOURCES += gbser_posix.cc HEADERS += gbser_posix.h -- 2.30.2